<template>
  <div class="dy-main AccountAddCardResult">
    <div class="dy-header">
      <x-header title="添加卡片" :left-options="{preventGoBack:true}" @on-click-back="back"></x-header>
    </div>
    <div class="dy-body">
      <div class="success-box-wrap" v-if="status !== 0">
        <img src="../../../static/icon/success-arrow.svg" />
        <strong>添加成功</strong>
        <p class="success-p">您的银行卡添加成功</p>
      </div>
      <div class="confirm">
        <x-button :disabled="allowClick" action-type="button" @click.native="returnPage('AccountManage')">完成</x-button>
      </div>
    </div>
    <!--<div class="dy-footer"></div>-->
  </div>
</template>
<script>
export default {
  data () {
    return {
    }
  },
  methods: {
    /**
     *返回
     *
     **/
    back () {
      this.$publicFun.goBack(this, 'AccountManage')
    },
    /**
     *返回页面
     **/
    returnPage (name) {
      this.$router.push({name: name})
    }
  }
}
</script>
<style lang="less">
  .AccountAddCardResult {
    .dy-body {
      position: relative;
      .success-box-wrap {
        padding: .58rem 0 .66rem;
        text-align: center;
        background-color: #fff;
        img {
          width: 1.5rem;
          height: 1.5rem;
        }
        strong {
          display: block;
          margin-top: .3rem;
          font-size: .44rem;
          font-weight: normal;
          line-height: .6rem;
        }
        .success-p {
          margin-top: .28rem;
          font-size: .24rem;
          line-height: .42rem;
          color: #9b9b9b;
        }
      }
      /*.confirm {*/
        /*margin: .8rem auto .62rem;*/
        /*padding: 0 .4rem;*/
        /*width: 100%;*/
      /*}*/
      .confirm {
        position: absolute;
        left: 0;
        bottom: .8rem;
        padding: 0 .4rem;
        width: 100%;
      }
    }
    .img-camera-wrap {
      display: inline-block;
      width:.48rem;
      height: .38rem;
      vertical-align: middle;
    }
  }
</style>
